<template>
  <!-- 新碟上架页面 -->
  <div class="new-disc">
    <div class="new-disc-wrap">
      <!-- 热门新碟 -->
      <div class="hot-disc">
        <div class="title">
          <span>热门新碟</span>
        </div>
        <div class="content">
          <div class="item" v-for="(i, index) in 10" :key="index">
            <div class="main">
              <img src="./img/1.jpg" />
              <a
                class="mask"
                href="javascript:;"
                title="云还在唱歌"
              ></a>
            </div>
            <a class="icon" title="播放" v-show="true"></a>
            <p class="desc text-ellipsis">
              <a
                href="javascript:;"
                title="云还在唱歌"
                >云还在唱歌</a
              >
            </p>
            <p class="name text-ellipsis">
              <a href="javascript:;" title="张杰">张杰</a>
            </p>
          </div>
        </div>
      </div>
      <!-- 全部新碟 -->
      <div class="all-disc">
        <div class="title">
          <span class="left">热门新碟</span>
          <div class="right">
            <span>全部</span>
            <span class="line">|</span>
            <span>华语</span>
            <span class="line">|</span>
            <span>欧美</span>
            <span class="line">|</span>
            <span>韩国</span>
            <span class="line">|</span>
            <span>日本</span>
          </div>
        </div>
        <!-- 下方 全部-华语-欧美-韩国-日本 组件 -->
        <disc></disc>
        <!-- 分页器 -->
        <pager :currentPage="currentPage" pageSize="35" pageGroup="7" total="700" @getCurrentPage="getCurrentPage" ></pager>
      </div>
    </div>
  </div>
</template>

<script>
// 下方 全部-华语-欧美-韩国-日本 组件
import disc from '@/components/find-music-components/new-disc/disc'
// 分页器
import pager from '@/components/pager'
export default {
  name: "new-disc",
  components:{disc,pager},
  data(){
    return{
      currentPage:1
    }
  },
  methods:{
    getCurrentPage(currentPage){
      this.currentPage = currentPage
    }
  }
};
</script>

<style lang="scss" scoped>
.new-disc {
  width: 100%;
  background-color: #f5f5f5;
  .new-disc-wrap {
    width: 902px;
    padding: 40px;
    margin: 0 auto;
    background-color: #fff;
    border-left: 1px solid #d3d3d3;
    border-right: 1px solid #d3d3d3;
    .hot-disc {
      .title {
        line-height: 40px;
        border-bottom: 2px solid #c20c0c;
        span {
          color: #333;
          font-size: 24px;
        }
      }
      .content {
        width: 900px;
        margin-top: 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        .item {
          width: 153px;
          height: 200px;
          font-size: 12px;
          position: relative;
          .main {
            width: 100%;
            height: 130px;
            position: relative;
            .mask {
              position: absolute;
              top: 0;
              left: 0;
              width: 153px;
              height: 130px;
              background: url("@/assets/coverall.png") no-repeat;
              background-position: 0 -845px;
            }
          }
          .icon {
            position: absolute;
            width: 28px;
            height: 28px;
            right: 30px;
            bottom: 75px;
            background: url("@/assets/iconall.png") no-repeat;
            background-position: 0px -140px;
            cursor: pointer;
            &:hover{
              background-position: 0px -170px;
            }
          }
          .desc {
            line-height: 24px;
            margin-top: 5px;
            font-size: 14px;
            a {
              color: #000;
                &:hover{
                text-decoration: underline;
              }
            }
          }
          .name {
            line-height: 15px;
            text-align: left;
            a {
              color: #666;
              &:hover{
                text-decoration: underline;
              }
            }
          }
        }
      }
    }
    .all-disc{
      .title {
        border-bottom: 2px solid #c20c0c;
        display: flex;
        align-items: flex-end;
        .left {
          color: #333;
          font-size: 24px;
          line-height: 40px;
        }
        .right{
          font-size: 12px;
          color: #999;
          margin-left: 20px;
          height: 22px;
          span:nth-child(odd){
            cursor: pointer;
            &:hover{
              text-decoration: underline;
            }
          }
          .line{
            color: #c7c7c7;
            margin: 0 10px;
          }
        }
      }
    }
  }
}
</style>